import fetch from 'common/src/utils/fetch';

/**
 *获取列表
 */
function getAcdemicDeanListPage(data) {
  return fetch({
    url: '/api/electionservice/common/fxExamQuery/getAcdemicDeanListPage',
    method: 'post',
    data
  })
}


/**
 * 导出
 * @param {Object} data
 */
export function exportAcdemicDeanList(data) {
  return fetch({
    url: '/api/electionservice/common/fxExamQuery/exportAcdemicDeanList',
    method: 'post',
    data
  })
}

/**
 * 导出
 * @param {Object} data
 */
export function exportAcdemicDeanListZip(data,isPdf) {
  return fetch({
    url: '/api/electionservice/common/fxExamQuery/exportAcdemicDeanListZip?isPdf='+isPdf,
    method: 'post',
    data
  })
}

/**
 * 获取key
 */
function exportStatus(key) {
  return fetch({
    url: '/api/electionservice/undergraduateExamQuery/result/' + key,
    method: 'get'
  });
}

/**
 * 获取key
 */
function exportStatusObs(key) {
  return fetch({
    url: '/api/electionservice/undergraduateExamDownload/resultObs/' + key,
    method: 'get'
  });
}


export default {
  getAcdemicDeanListPage: getAcdemicDeanListPage,
  exportAcdemicDeanList:exportAcdemicDeanList,
  exportStatus:exportStatus,
  exportStatusObs : exportStatusObs,
  exportAcdemicDeanListZip : exportAcdemicDeanListZip
};
